﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.Candidate;
    using HRM.CORE.REPORT;
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;

    public class xucCandidate : Common.xucBase
    {
        private Bar bar1;
        private Bar bar2;
        private Bar bar4;
        private BarButtonItem barButtonItem1;
        private BarButtonItem barButtonItem9;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarEditItem barEditItem1;
        private BarEditItem barEditItem2;
        private BarManager barManager1;
        private BarSubItem barSubItem1;
        private BarButtonItem bbiAddCandidate;
        private BarButtonItem bbiAddRecruitment;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiDelete;
        private BarButtonItem bbiEdit;
        private BarButtonItem bbiExport;
        private BarEditItem bbiFilter;
        private BarButtonItem bbiMark;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiRate;
        private BarButtonItem bbiRecruitment;
        private BarButtonItem bbiReload;
        private GridColumn colBirthday;
        private GridColumn colBirthPlace;
        private GridColumn colCandidateCode;
        private GridColumn colCellPhone;
        private GridColumn colEducation;
        private GridColumn colEmail;
        private GridColumn colEthnic;
        private GridColumn colFirstName;
        private GridColumn colGender;
        private GridColumn colIDCard;
        private GridColumn colIDCardDate;
        private GridColumn colIDCardPlace;
        private GridColumn colImage;
        private GridColumn colInformatic;
        private GridColumn colLanguage;
        private GridColumn colLastName;
        private GridColumn colMainAddress;
        private GridColumn colMarriage;
        private GridColumn colNationality;
        private GridColumn colProfessional;
        private GridColumn colRecruitmentName;
        private GridColumn colReligion;
        private GridColumn colSex;
        private GridColumn colStatus;
        private IContainer components = null;
        private GridView gbList;
        private GridControl gcList;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private LabelControl lblNote1;
        private LabelControl lblNote2;
        private LabelControl lblNote3;
        private LabelControl lblNote4;
        private LabelControl lblNote5;
        private int m_IndexKey = 0;
        private string m_RecruitmentCode = "";
        protected Common.Class.RowClickEventArgs m_RowClickEventArgs = new Common.Class.RowClickEventArgs();
        private GridViewColumnButtonMenu menu;
        private Panel panel1;
        private Panel panel2;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private PopupMenu popupMenu1;
        private RepositoryItemImageComboBox repFilter;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemImageEdit repositoryItemImageEdit1;
        private RepositoryItemPictureEdit rptPicture;
        private SplitContainerControl splitContainerControl1;
        private xucRecruitment1 xucRecruit;

        public event ClosedHander Closed;

        public event RowClickEventHander RowClick;

        public xucCandidate()
        {
            this.InitializeComponent();
            base.RestoreLayout(this.gbList, this);
            this.splitContainerControl1.SplitterPosition = LoadStyle();
            this.ReLoad();
        }

        private void Add()
        {
            xfmCandidateAdd add = new xfmCandidateAdd(Actions.Add);
            add.Added += new xfmCandidateAdd.AddedEventHander(this.frm_Added);
            add.ShowDialog();
        }

        private void bbiAddCandidate_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Add();
        }

        private void bbiAddRecruitment_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.xucRecruit.AddRecruitment();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHander();
        }

        private void bbiDelete_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool flag = false;
            int[] selectedRows = this.gbList.GetSelectedRows();
            if (XtraMessageBox.Show("Bạn c\x00f3 muốn x\x00f3a kh\x00f4ng?", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
            {
                string str;
                object rowCellValue;
                base.SetWaitDialogCaption("Đang x\x00f3a...");
                HRM_CANDIDATE hrm_candidate = new HRM_CANDIDATE();
                for (int i = selectedRows.Length; i > 0; i--)
                {
                    flag = true;
                    rowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "CandidateCode");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Ứng Vi\x00ean", "Xo\x00e1", rowCellValue.ToString());
                        str = hrm_candidate.Delete(rowCellValue.ToString());
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(selectedRows[i - 1]);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                    }
                }
                this.DoHide();
                if (!flag && (hrm_candidate.GetList(this.m_RecruitmentCode, this.m_IndexKey).Rows.Count != 0))
                {
                    rowCellValue = this.gbList.GetFocusedRowCellValue("CandidateCode");
                    if (rowCellValue != null)
                    {
                        SYS_LOG.Insert("Danh S\x00e1ch Ứng Vi\x00ean", "Xo\x00e1", rowCellValue.ToString());
                        base.SetWaitDialogCaption("Đang x\x00f3a...");
                        str = hrm_candidate.Delete(rowCellValue.ToString());
                        if (str == "OK")
                        {
                            this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                        }
                        else if (str != "OK")
                        {
                            MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        }
                        this.DoHide();
                    }
                }
            }
        }

        private void bbiEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Change();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Danh S\x00e1ch Ứng Vi\x00ean", "Xuất");
            base.Export();
        }

        private void bbiFilter_EditValueChanged(object sender, EventArgs e)
        {
            this.m_IndexKey = int.Parse(this.bbiFilter.EditValue.ToString());
            this.gcList.DataSource = new HRM_CANDIDATE().GetList(this.m_RecruitmentCode, this.m_IndexKey);
        }

        private void bbiMark_ItemClick(object sender, ItemClickEventArgs e)
        {
            object focusedRowCellValue = this.gbList.GetFocusedRowCellValue("CandidateCode");
            if (focusedRowCellValue != null)
            {
                xfmMark mark = new xfmMark(focusedRowCellValue.ToString());
                mark.Success += new xfmMark.SuccessEventHander(this.xfmMark_Success);
                mark.ShowDialog();
            }
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            rptListCandidate candidate;
            SYS_LOG.Insert("Danh S\x00e1ch Ứng Vi\x00ean", "In");
            xfmReport report = new xfmReport("Danh S\x00e1ch Ứnng Vi\x00ean");
            if (this.m_RecruitmentCode == "")
            {
                candidate = new rptListCandidate();
            }
            else
            {
                candidate = new rptListCandidate(this.m_RecruitmentCode);
            }
            report.ShowPrintPreview(candidate);
        }

        private void bbiRate_ItemClick(object sender, ItemClickEventArgs e)
        {
            object focusedRowCellValue = this.gbList.GetFocusedRowCellValue("CandidateCode");
            if (focusedRowCellValue != null)
            {
                xfmRate rate = new xfmRate(focusedRowCellValue.ToString());
                rate.Success += new xfmRate.SuccessEventHander(this.xfmRate_Success);
                rate.ShowDialog();
            }
        }

        private void bbiRecruitment_ItemClick(object sender, ItemClickEventArgs e)
        {
            DataTable candidate = new DataTable();
            DataColumn column = new DataColumn("CandidateCode");
            DataColumn column2 = new DataColumn("FirstName");
            DataColumn column3 = new DataColumn("LastName");
            DataColumn column4 = new DataColumn("Sex");
            DataColumn column5 = new DataColumn("Status");
            candidate.Columns.Add(column);
            candidate.Columns.Add(column2);
            candidate.Columns.Add(column3);
            candidate.Columns.Add(column4);
            candidate.Columns.Add(column5);
            int[] selectedRows = this.gbList.GetSelectedRows();
            for (int i = 0; i < selectedRows.Length; i++)
            {
                candidate.Rows.Add(new object[] { this.gbList.GetRowCellValue(selectedRows[i], this.colCandidateCode), this.gbList.GetRowCellValue(selectedRows[i], this.colFirstName), this.gbList.GetRowCellValue(selectedRows[i], this.colLastName), this.gbList.GetRowCellValue(selectedRows[i], this.colSex), this.gbList.GetRowCellValue(selectedRows[i], this.colStatus) });
            }
            xfmRecruit recruit = new xfmRecruit(candidate);
            recruit.FormClosed += new FormClosedEventHandler(this.xfmRecruit_FormClosed);
            recruit.ShowDialog();
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.ReLoad();
        }

        private void Change()
        {
            HRM_CANDIDATE item = new HRM_CANDIDATE();
            object focusedRowCellValue = this.gbList.GetFocusedRowCellValue("CandidateCode");
            if (focusedRowCellValue != null)
            {
                base.SetWaitDialogCaption("Đang kiểm tra dữ liệu....");
                if (item.Get(focusedRowCellValue.ToString()) != "OK")
                {
                    this.DoHide();
                    XtraMessageBox.Show("Dữ liệu kh\x00f4ng tồn tại", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else
                {
                    this.DoHide();
                    xfmCandidateAdd add = new xfmCandidateAdd(Actions.Update, item);
                    add.Updated += new xfmCandidateAdd.UpdatedEventHander(this.frm_Updated);
                    add.Added += new xfmCandidateAdd.AddedEventHander(this.frm_Added);
                    add.ShowDialog();
                }
            }
        }

        public void DisableMenu(bool disable)
        {
            this.bbiEdit.Enabled = !disable;
            this.bbiDelete.Enabled = !disable;
            this.bbiMark.Enabled = !disable;
            this.bbiRate.Enabled = !disable;
            this.bbiRecruitment.Enabled = !disable;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void frm_Added(object sender, HRM_CANDIDATE Item)
        {
            this.LoadGrid();
        }

        private void frm_Updated(object sender, HRM_CANDIDATE Item)
        {
            this.UpdateRow(Item);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_DoubleClick(object sender, EventArgs e)
        {
            if (this.gbList.RowCount != 0)
            {
                this.Change();
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            this.SetMenu(null);
        }

        private void gbList_KeyDown(object sender, KeyEventArgs e)
        {
            this.ucList_ListKeyDown(sender, e);
            if ((e.KeyCode == Keys.Delete) && (this.gbList.RowCount != 0))
            {
                this.Delete();
            }
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList, this);
            }
        }

        private void gbList_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            Common.Class.RowClickEventArgs args = new Common.Class.RowClickEventArgs(e.RowHandle, e.Column.ColumnHandle);
            this.SetMenu(args);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucCandidate));
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            StyleFormatCondition condition3 = new StyleFormatCondition();
            StyleFormatCondition condition4 = new StyleFormatCondition();
            StyleFormatCondition condition5 = new StyleFormatCondition();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            SuperToolTip tip2 = new SuperToolTip();
            ToolTipItem item2 = new ToolTipItem();
            SuperToolTip tip3 = new SuperToolTip();
            ToolTipItem item3 = new ToolTipItem();
            this.colStatus = new GridColumn();
            this.bar1 = new Bar();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.splitContainerControl1 = new SplitContainerControl();
            this.xucRecruit = new xucRecruitment1();
            this.lblNote1 = new LabelControl();
            this.panel5 = new Panel();
            this.lblNote3 = new LabelControl();
            this.panel4 = new Panel();
            this.lblNote2 = new LabelControl();
            this.panel3 = new Panel();
            this.lblNote5 = new LabelControl();
            this.panel2 = new Panel();
            this.lblNote4 = new LabelControl();
            this.panel1 = new Panel();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.colImage = new GridColumn();
            this.rptPicture = new RepositoryItemPictureEdit();
            this.colCandidateCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.colSex = new GridColumn();
            this.colBirthday = new GridColumn();
            this.colBirthPlace = new GridColumn();
            this.colCellPhone = new GridColumn();
            this.colMainAddress = new GridColumn();
            this.colRecruitmentName = new GridColumn();
            this.colEmail = new GridColumn();
            this.colIDCard = new GridColumn();
            this.colIDCardDate = new GridColumn();
            this.colIDCardPlace = new GridColumn();
            this.colMarriage = new GridColumn();
            this.colNationality = new GridColumn();
            this.colEthnic = new GridColumn();
            this.colReligion = new GridColumn();
            this.colEducation = new GridColumn();
            this.colLanguage = new GridColumn();
            this.colInformatic = new GridColumn();
            this.colProfessional = new GridColumn();
            this.bar4 = new Bar();
            this.barButtonItem9 = new BarButtonItem();
            this.barButtonItem1 = new BarButtonItem();
            this.barManager1 = new BarManager(this.components);
            this.bar2 = new Bar();
            this.bbiAddRecruitment = new BarButtonItem();
            this.bbiAddCandidate = new BarButtonItem();
            this.bbiEdit = new BarButtonItem();
            this.bbiDelete = new BarButtonItem();
            this.bbiPrint = new BarButtonItem();
            this.bbiFilter = new BarEditItem();
            this.repFilter = new RepositoryItemImageComboBox();
            this.bbiMark = new BarButtonItem();
            this.bbiRate = new BarButtonItem();
            this.bbiRecruitment = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.barEditItem1 = new BarEditItem();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.barEditItem2 = new BarEditItem();
            this.repositoryItemImageEdit1 = new RepositoryItemImageEdit();
            this.barSubItem1 = new BarSubItem();
            this.popupMenu1 = new PopupMenu(this.components);
            this.colGender = new GridColumn();
            this.imageCollection2.BeginInit();
            this.splitContainerControl1.BeginInit();
            this.splitContainerControl1.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.rptPicture.BeginInit();
            this.barManager1.BeginInit();
            this.repFilter.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.repositoryItemImageEdit1.BeginInit();
            this.popupMenu1.BeginInit();
            base.SuspendLayout();
            this.colStatus.Caption = "Trạng th\x00e1i";
            this.colStatus.FieldName = "Status";
            this.colStatus.Name = "colStatus";
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.FloatLocation = new Point(0x2f, 0x80);
            this.bar1.OptionsBar.AllowQuickCustomization = false;
            this.bar1.OptionsBar.DrawDragBorder = false;
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "C\x00f4ng Cụ";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.splitContainerControl1.Dock = DockStyle.Fill;
            this.splitContainerControl1.Location = new Point(0, 0x1a);
            this.splitContainerControl1.Name = "splitContainerControl1";
            this.splitContainerControl1.Panel1.AutoScroll = true;
            this.splitContainerControl1.Panel1.Controls.Add(this.xucRecruit);
            this.splitContainerControl1.Panel1.Text = "Panel1";
            this.splitContainerControl1.Panel2.Controls.Add(this.lblNote1);
            this.splitContainerControl1.Panel2.Controls.Add(this.panel5);
            this.splitContainerControl1.Panel2.Controls.Add(this.lblNote3);
            this.splitContainerControl1.Panel2.Controls.Add(this.panel4);
            this.splitContainerControl1.Panel2.Controls.Add(this.lblNote2);
            this.splitContainerControl1.Panel2.Controls.Add(this.panel3);
            this.splitContainerControl1.Panel2.Controls.Add(this.lblNote5);
            this.splitContainerControl1.Panel2.Controls.Add(this.panel2);
            this.splitContainerControl1.Panel2.Controls.Add(this.lblNote4);
            this.splitContainerControl1.Panel2.Controls.Add(this.panel1);
            this.splitContainerControl1.Panel2.Controls.Add(this.gcList);
            this.splitContainerControl1.Panel2.Text = "Panel2";
            this.splitContainerControl1.Size = new Size(0x455, 0x23f);
            this.splitContainerControl1.SplitterPosition = 230;
            this.splitContainerControl1.TabIndex = 4;
            this.splitContainerControl1.Text = "splitContainerControl1";
            this.splitContainerControl1.SplitterPositionChanged += new EventHandler(this.splitContainerControl1_SplitterPositionChanged);
            this.xucRecruit.Dock = DockStyle.Fill;
            this.xucRecruit.Location = new Point(0, 0);
            this.xucRecruit.Name = "xucRecruit";
            this.xucRecruit.Size = new Size(230, 0x23f);
            this.xucRecruit.TabIndex = 1;
            this.lblNote1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblNote1.Location = new Point(0x219, 6);
            this.lblNote1.Name = "lblNote1";
            this.lblNote1.Size = new Size(0x77, 13);
            this.lblNote1.TabIndex = 12;
            this.lblNote1.Text = "Đ\x00e3 thi v\x00e0 phỏng vấn đậu";
            this.panel5.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.panel5.BackColor = Color.DarkGoldenrod;
            this.panel5.BorderStyle = BorderStyle.FixedSingle;
            this.panel5.Location = new Point(0x20a, 6);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(13, 13);
            this.panel5.TabIndex = 11;
            this.lblNote3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblNote3.Location = new Point(680, 0x19);
            this.lblNote3.Name = "lblNote3";
            this.lblNote3.Size = new Size(50, 13);
            this.lblNote3.TabIndex = 10;
            this.lblNote3.Text = "Đ\x00e3 thi đậu";
            this.panel4.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.panel4.BackColor = Color.DodgerBlue;
            this.panel4.BorderStyle = BorderStyle.FixedSingle;
            this.panel4.Location = new Point(0x299, 0x19);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(13, 13);
            this.panel4.TabIndex = 9;
            this.lblNote2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblNote2.Location = new Point(680, 6);
            this.lblNote2.Name = "lblNote2";
            this.lblNote2.Size = new Size(0x48, 13);
            this.lblNote2.TabIndex = 8;
            this.lblNote2.Text = "Đ\x00e3 tuyển dụng";
            this.panel3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.panel3.BackColor = Color.Red;
            this.panel3.BorderStyle = BorderStyle.FixedSingle;
            this.panel3.Location = new Point(0x299, 6);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(13, 13);
            this.panel3.TabIndex = 7;
            this.lblNote5.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblNote5.Location = new Point(0x307, 0x19);
            this.lblNote5.Name = "lblNote5";
            this.lblNote5.Size = new Size(0x59, 13);
            this.lblNote5.TabIndex = 6;
            this.lblNote5.Text = "Đ\x00e3 đậu phỏng vấn";
            this.panel2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.panel2.BackColor = Color.LimeGreen;
            this.panel2.BorderStyle = BorderStyle.FixedSingle;
            this.panel2.Location = new Point(760, 0x19);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(13, 13);
            this.panel2.TabIndex = 5;
            this.lblNote4.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblNote4.Location = new Point(0x307, 6);
            this.lblNote4.Name = "lblNote4";
            this.lblNote4.Size = new Size(0x56, 13);
            this.lblNote4.TabIndex = 4;
            this.lblNote4.Text = "Chưa tr\x00fang tuyển";
            this.panel1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.panel1.BackColor = Color.DimGray;
            this.panel1.BorderStyle = BorderStyle.FixedSingle;
            this.panel1.Location = new Point(760, 6);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(13, 13);
            this.panel1.TabIndex = 3;
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0, 0);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.rptPicture });
            this.gcList.Size = new Size(0x369, 0x23f);
            this.gcList.TabIndex = 2;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Columns.AddRange(new GridColumn[] { 
                this.colImage, this.colCandidateCode, this.colFirstName, this.colLastName, this.colSex, this.colGender, this.colBirthday, this.colBirthPlace, this.colCellPhone, this.colMainAddress, this.colRecruitmentName, this.colStatus, this.colEmail, this.colIDCard, this.colIDCardDate, this.colIDCardPlace, 
                this.colMarriage, this.colNationality, this.colEthnic, this.colReligion, this.colEducation, this.colLanguage, this.colInformatic, this.colProfessional
             });
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.FromArgb(0x40, 0x40, 0x40);
            condition.Appearance.Options.UseForeColor = true;
            condition.ApplyToRow = true;
            condition.Column = this.colStatus;
            condition.Condition = FormatConditionEnum.Equal;
            condition.Value1 = 0;
            condition2.Appearance.ForeColor = Color.RoyalBlue;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.ApplyToRow = true;
            condition2.Column = this.colStatus;
            condition2.Condition = FormatConditionEnum.Equal;
            condition2.Value1 = 1;
            condition3.Appearance.ForeColor = Color.ForestGreen;
            condition3.Appearance.Options.UseForeColor = true;
            condition3.ApplyToRow = true;
            condition3.Column = this.colStatus;
            condition3.Condition = FormatConditionEnum.Equal;
            condition3.Value1 = 2;
            condition4.Appearance.ForeColor = Color.DarkGoldenrod;
            condition4.Appearance.Options.UseForeColor = true;
            condition4.ApplyToRow = true;
            condition4.Column = this.colStatus;
            condition4.Condition = FormatConditionEnum.Equal;
            condition4.Value1 = 3;
            condition5.Appearance.ForeColor = Color.Red;
            condition5.Appearance.Options.UseForeColor = true;
            condition5.ApplyToRow = true;
            condition5.Column = this.colStatus;
            condition5.Condition = FormatConditionEnum.Equal;
            condition5.Value1 = 4;
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2, condition3, condition4, condition5 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupCount = 1;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.RowAutoHeight = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.PaintStyleName = "Skin";
            this.gbList.SortInfo.AddRange(new GridColumnSortInfo[] { new GridColumnSortInfo(this.colRecruitmentName, ColumnSortOrder.Ascending) });
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.KeyDown += new KeyEventHandler(this.gbList_KeyDown);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.gbList.DoubleClick += new EventHandler(this.gbList_DoubleClick);
            this.gbList.RowCellClick += new RowCellClickEventHandler(this.gbList_RowCellClick);
            this.colImage.Caption = "H\x00ecnh ảnh";
            this.colImage.ColumnEdit = this.rptPicture;
            this.colImage.FieldName = "Photo";
            this.colImage.Name = "colImage";
            this.colImage.OptionsColumn.AllowEdit = false;
            this.colImage.OptionsColumn.AllowGroup = DefaultBoolean.False;
            this.colImage.OptionsColumn.AllowIncrementalSearch = false;
            this.colImage.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colImage.OptionsColumn.AllowSort = DefaultBoolean.False;
            this.colImage.OptionsColumn.ReadOnly = true;
            this.colImage.OptionsColumn.TabStop = false;
            this.colImage.OptionsFilter.AllowAutoFilter = false;
            this.colImage.OptionsFilter.AllowFilter = false;
            this.rptPicture.CustomHeight = 0x30;
            this.rptPicture.Name = "rptPicture";
            this.rptPicture.NullText = "[Chưa c\x00f3 h\x00ecnh]";
            this.rptPicture.ReadOnly = true;
            this.rptPicture.ShowMenu = false;
            this.rptPicture.SizeMode = PictureSizeMode.Zoom;
            this.colCandidateCode.Caption = "M\x00e3 ứng vi\x00ean";
            this.colCandidateCode.FieldName = "CandidateCode";
            this.colCandidateCode.Name = "colCandidateCode";
            this.colCandidateCode.OptionsColumn.AllowEdit = false;
            this.colCandidateCode.OptionsColumn.ReadOnly = true;
            this.colCandidateCode.Visible = true;
            this.colCandidateCode.VisibleIndex = 0;
            this.colCandidateCode.Width = 0x5e;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colFirstName.Width = 0x77;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.colLastName.Width = 0x42;
            this.colSex.Caption = "Nam (X)";
            this.colSex.FieldName = "Sex";
            this.colSex.Name = "colSex";
            this.colSex.OptionsColumn.AllowEdit = false;
            this.colSex.OptionsColumn.ReadOnly = true;
            this.colSex.Width = 0x3b;
            this.colBirthday.Caption = "Ng\x00e0y sinh";
            this.colBirthday.FieldName = "Birthday";
            this.colBirthday.Name = "colBirthday";
            this.colBirthday.OptionsColumn.AllowEdit = false;
            this.colBirthday.OptionsColumn.ReadOnly = true;
            this.colBirthday.Visible = true;
            this.colBirthday.VisibleIndex = 3;
            this.colBirthday.Width = 0x44;
            this.colBirthPlace.Caption = "Nơi sinh";
            this.colBirthPlace.FieldName = "BirthPlace";
            this.colBirthPlace.Name = "colBirthPlace";
            this.colBirthPlace.OptionsColumn.AllowEdit = false;
            this.colBirthPlace.OptionsColumn.ReadOnly = true;
            this.colBirthPlace.Visible = true;
            this.colBirthPlace.VisibleIndex = 5;
            this.colBirthPlace.Width = 0x9a;
            this.colCellPhone.Caption = "Điện thoại";
            this.colCellPhone.FieldName = "CellPhone";
            this.colCellPhone.Name = "colCellPhone";
            this.colCellPhone.OptionsColumn.AllowEdit = false;
            this.colCellPhone.OptionsColumn.ReadOnly = true;
            this.colCellPhone.Visible = true;
            this.colCellPhone.VisibleIndex = 6;
            this.colCellPhone.Width = 0x57;
            this.colMainAddress.Caption = "Địa chỉ";
            this.colMainAddress.FieldName = "MainAddress";
            this.colMainAddress.Name = "colMainAddress";
            this.colMainAddress.OptionsColumn.AllowEdit = false;
            this.colMainAddress.OptionsColumn.ReadOnly = true;
            this.colMainAddress.Visible = true;
            this.colMainAddress.VisibleIndex = 7;
            this.colMainAddress.Width = 0x162;
            this.colRecruitmentName.Caption = "Đợt tuyển dụng";
            this.colRecruitmentName.FieldName = "RecruitmentName";
            this.colRecruitmentName.Name = "colRecruitmentName";
            this.colRecruitmentName.OptionsColumn.AllowEdit = false;
            this.colRecruitmentName.OptionsColumn.ReadOnly = true;
            this.colEmail.Caption = "Email";
            this.colEmail.FieldName = "Email";
            this.colEmail.Name = "colEmail";
            this.colEmail.Visible = true;
            this.colEmail.VisibleIndex = 8;
            this.colIDCard.Caption = "CMND";
            this.colIDCard.FieldName = "IDCard";
            this.colIDCard.Name = "colIDCard";
            this.colIDCard.Visible = true;
            this.colIDCard.VisibleIndex = 9;
            this.colIDCardDate.Caption = "Ng\x00e0y cấp";
            this.colIDCardDate.FieldName = "IDCardDate";
            this.colIDCardDate.Name = "colIDCardDate";
            this.colIDCardDate.Visible = true;
            this.colIDCardDate.VisibleIndex = 10;
            this.colIDCardPlace.Caption = "Nơi cấp";
            this.colIDCardPlace.FieldName = "IDCardPlace";
            this.colIDCardPlace.Name = "colIDCardPlace";
            this.colIDCardPlace.Visible = true;
            this.colIDCardPlace.VisibleIndex = 11;
            this.colMarriage.Caption = "H\x00f4n nh\x00e2n";
            this.colMarriage.FieldName = "Marriage";
            this.colMarriage.Name = "colMarriage";
            this.colMarriage.Visible = true;
            this.colMarriage.VisibleIndex = 12;
            this.colNationality.Caption = "Quốc tịch";
            this.colNationality.FieldName = "Nationality";
            this.colNationality.Name = "colNationality";
            this.colNationality.OptionsColumn.AllowEdit = false;
            this.colNationality.OptionsColumn.ReadOnly = true;
            this.colNationality.Visible = true;
            this.colNationality.VisibleIndex = 13;
            this.colEthnic.Caption = "D\x00e2n tộc";
            this.colEthnic.FieldName = "Ethnic";
            this.colEthnic.Name = "colEthnic";
            this.colEthnic.OptionsColumn.AllowEdit = false;
            this.colEthnic.OptionsColumn.ReadOnly = true;
            this.colEthnic.Visible = true;
            this.colEthnic.VisibleIndex = 14;
            this.colReligion.Caption = "T\x00f4n gi\x00e1o";
            this.colReligion.FieldName = "Religion";
            this.colReligion.Name = "colReligion";
            this.colReligion.OptionsColumn.AllowEdit = false;
            this.colReligion.OptionsColumn.ReadOnly = true;
            this.colReligion.Visible = true;
            this.colReligion.VisibleIndex = 15;
            this.colEducation.Caption = "Học vấn";
            this.colEducation.FieldName = "Education";
            this.colEducation.Name = "colEducation";
            this.colEducation.OptionsColumn.AllowEdit = false;
            this.colEducation.OptionsColumn.ReadOnly = true;
            this.colEducation.Visible = true;
            this.colEducation.VisibleIndex = 0x10;
            this.colLanguage.Caption = "Ngoại ngữ";
            this.colLanguage.FieldName = "Language";
            this.colLanguage.Name = "colLanguage";
            this.colLanguage.OptionsColumn.AllowEdit = false;
            this.colLanguage.OptionsColumn.ReadOnly = true;
            this.colLanguage.Visible = true;
            this.colLanguage.VisibleIndex = 0x11;
            this.colInformatic.Caption = "Tin học";
            this.colInformatic.FieldName = "Informatic";
            this.colInformatic.Name = "colInformatic";
            this.colInformatic.OptionsColumn.AllowEdit = false;
            this.colInformatic.OptionsColumn.ReadOnly = true;
            this.colInformatic.Visible = true;
            this.colInformatic.VisibleIndex = 0x12;
            this.colProfessional.Caption = "Chuy\x00ean m\x00f4n";
            this.colProfessional.FieldName = "Professional";
            this.colProfessional.Name = "colProfessional";
            this.colProfessional.OptionsColumn.AllowEdit = false;
            this.colProfessional.OptionsColumn.ReadOnly = true;
            this.colProfessional.Visible = true;
            this.colProfessional.VisibleIndex = 0x13;
            this.bar4.BarName = "Status bar";
            this.bar4.CanDockStyle = BarCanDockStyle.Bottom;
            this.bar4.DockCol = 0;
            this.bar4.DockRow = 0;
            this.bar4.DockStyle = BarDockStyle.Bottom;
            this.bar4.OptionsBar.AllowQuickCustomization = false;
            this.bar4.OptionsBar.DrawDragBorder = false;
            this.bar4.OptionsBar.UseWholeRow = true;
            this.bar4.Text = "Status bar";
            this.barButtonItem9.Caption = "Tuyển dụng";
            this.barButtonItem9.Id = 14;
            this.barButtonItem9.ImageIndex = 0x1b;
            this.barButtonItem9.Name = "barButtonItem9";
            this.barButtonItem1.Caption = "Th\x00eam đợt tuyển dụng";
            this.barButtonItem1.Id = 2;
            this.barButtonItem1.ImageIndex = 0x45;
            this.barButtonItem1.Name = "barButtonItem1";
            this.barManager1.Bars.AddRange(new Bar[] { this.bar2 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiAddRecruitment, this.bbiAddCandidate, this.bbiEdit, this.bbiDelete, this.bbiPrint, this.bbiMark, this.bbiRate, this.bbiRecruitment, this.barEditItem1, this.bbiClose, this.barEditItem2, this.bbiFilter, this.bbiReload, this.bbiExport, this.barSubItem1 });
            this.barManager1.MaxItemId = 15;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemComboBox1, this.repositoryItemImageEdit1, this.repFilter });
            this.bar2.BarName = "Tools";
            this.bar2.DockCol = 0;
            this.bar2.DockRow = 0;
            this.bar2.DockStyle = BarDockStyle.Top;
            this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddRecruitment, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddCandidate, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiEdit, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiDelete, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(this.bbiFilter, true), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiMark, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRate, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRecruitment, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar2.OptionsBar.UseWholeRow = true;
            this.bar2.Text = "Tools";
            this.bbiAddRecruitment.Caption = "Th\x00eam Đợt Tuyển Dụng";
            this.bbiAddRecruitment.Id = 0;
            this.bbiAddRecruitment.ImageIndex = 0x45;
            this.bbiAddRecruitment.Name = "bbiAddRecruitment";
            this.bbiAddRecruitment.ItemClick += new ItemClickEventHandler(this.bbiAddRecruitment_ItemClick);
            this.bbiAddCandidate.Caption = "Th\x00eam Ứng Vi\x00ean";
            this.bbiAddCandidate.Id = 1;
            this.bbiAddCandidate.ImageIndex = 0x45;
            this.bbiAddCandidate.Name = "bbiAddCandidate";
            this.bbiAddCandidate.ItemClick += new ItemClickEventHandler(this.bbiAddCandidate_ItemClick);
            this.bbiEdit.Caption = "Sửa";
            this.bbiEdit.Enabled = false;
            this.bbiEdit.Id = 2;
            this.bbiEdit.ImageIndex = 14;
            this.bbiEdit.Name = "bbiEdit";
            this.bbiEdit.ItemClick += new ItemClickEventHandler(this.bbiEdit_ItemClick);
            this.bbiDelete.Caption = "X\x00f3a";
            this.bbiDelete.Enabled = false;
            this.bbiDelete.Id = 3;
            this.bbiDelete.ImageIndex = 13;
            this.bbiDelete.Name = "bbiDelete";
            this.bbiDelete.ItemClick += new ItemClickEventHandler(this.bbiDelete_ItemClick);
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 4;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiFilter.Caption = "barEditItem3";
            this.bbiFilter.Description = "<Tất Cả>";
            this.bbiFilter.Edit = this.repFilter;
            this.bbiFilter.EditValue = "<Tất Cả>";
            this.bbiFilter.Id = 11;
            this.bbiFilter.Name = "bbiFilter";
            this.bbiFilter.Width = 200;
            this.repFilter.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repFilter.Appearance.Options.UseFont = true;
            this.repFilter.AutoHeight = false;
            this.repFilter.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repFilter.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("<Tất Cả>", 0, -1), new ImageComboBoxItem("<C\x00e1c Ứng Vi\x00ean Đậu V\x00f2ng Thi Tuyển>", 1, -1), new ImageComboBoxItem("<C\x00e1c Ứng Vi\x00ean Đậu V\x00f2ng Phỏng Vấn>", 2, -1), new ImageComboBoxItem("<C\x00e1c Ứng Vi\x00ean Đậu Cả Hai V\x00f2ng>", 3, -1), new ImageComboBoxItem("<C\x00e1c Ứng Vi\x00ean Đ\x00e3 Tuyển Dụng>", 4, -1), new ImageComboBoxItem("<Rớt Hoặc Chưa X\x00e9t Tuyển>", 5, -1) });
            this.repFilter.Name = "repFilter";
            this.bbiMark.Caption = "Kết Quả Thi";
            this.bbiMark.Enabled = false;
            this.bbiMark.Id = 5;
            this.bbiMark.ImageIndex = 0x1f;
            this.bbiMark.ItemShortcut = new BarShortcut(Keys.Alt | Keys.D0);
            this.bbiMark.Name = "bbiMark";
            item.Text = "Alt+0";
            tip.Items.Add(item);
            this.bbiMark.SuperTip = tip;
            this.bbiMark.ItemClick += new ItemClickEventHandler(this.bbiMark_ItemClick);
            this.bbiRate.Caption = "Đ\x00e1nh Gi\x00e1";
            this.bbiRate.Enabled = false;
            this.bbiRate.Id = 6;
            this.bbiRate.ImageIndex = 0x21;
            this.bbiRate.ItemShortcut = new BarShortcut(Keys.Alt | Keys.D1);
            this.bbiRate.Name = "bbiRate";
            item2.Text = "Alt+1";
            tip2.Items.Add(item2);
            this.bbiRate.SuperTip = tip2;
            this.bbiRate.ItemClick += new ItemClickEventHandler(this.bbiRate_ItemClick);
            this.bbiRecruitment.Caption = "Tuyển Dụng";
            this.bbiRecruitment.Enabled = false;
            this.bbiRecruitment.Id = 7;
            this.bbiRecruitment.ImageIndex = 0x1b;
            this.bbiRecruitment.ItemShortcut = new BarShortcut(Keys.Alt | Keys.D2);
            this.bbiRecruitment.Name = "bbiRecruitment";
            item3.Text = "Alt+2";
            tip3.Items.Add(item3);
            this.bbiRecruitment.SuperTip = tip3;
            this.bbiRecruitment.ItemClick += new ItemClickEventHandler(this.bbiRecruitment_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 12;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.Name = "bbiReload";
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 13;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 9;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.barEditItem1.Caption = "Hiển Thị Theo:";
            this.barEditItem1.Edit = this.repositoryItemComboBox1;
            this.barEditItem1.Id = 8;
            this.barEditItem1.Name = "barEditItem1";
            this.barEditItem1.Width = 160;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.barEditItem2.Caption = "barEditItem2";
            this.barEditItem2.Edit = this.repositoryItemImageEdit1;
            this.barEditItem2.Id = 10;
            this.barEditItem2.Name = "barEditItem2";
            this.barEditItem2.Width = 160;
            this.repositoryItemImageEdit1.AutoHeight = false;
            this.repositoryItemImageEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemImageEdit1.Name = "repositoryItemImageEdit1";
            this.barSubItem1.Caption = "Th\x00eam";
            this.barSubItem1.Id = 14;
            this.barSubItem1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiAddRecruitment), new LinkPersistInfo(this.bbiAddCandidate) });
            this.barSubItem1.Name = "barSubItem1";
            this.popupMenu1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barSubItem1), new LinkPersistInfo(this.bbiEdit), new LinkPersistInfo(this.bbiDelete), new LinkPersistInfo(this.bbiMark), new LinkPersistInfo(this.bbiRate), new LinkPersistInfo(this.bbiRecruitment), new LinkPersistInfo(this.bbiPrint), new LinkPersistInfo(this.bbiExport), new LinkPersistInfo(this.bbiReload), new LinkPersistInfo(this.bbiClose) });
            this.popupMenu1.Manager = this.barManager1;
            this.popupMenu1.Name = "popupMenu1";
            this.colGender.AppearanceCell.Options.UseTextOptions = true;
            this.colGender.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colGender.Caption = "Giới t\x00ednh";
            this.colGender.FieldName = "Gender";
            this.colGender.Name = "colGender";
            this.colGender.OptionsColumn.AllowEdit = false;
            this.colGender.OptionsColumn.ReadOnly = true;
            this.colGender.UnboundExpression = "Iif([Sex] ==  True, 'Nam' ,'Nữ' )";
            this.colGender.UnboundType = UnboundColumnType.String;
            this.colGender.Visible = true;
            this.colGender.VisibleIndex = 4;
            this.colGender.Width = 0x3b;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.splitContainerControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucCandidate";
            base.Size = new Size(0x455, 0x259);
            this.imageCollection2.EndInit();
            this.splitContainerControl1.EndInit();
            this.splitContainerControl1.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.rptPicture.EndInit();
            this.barManager1.EndInit();
            this.repFilter.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.repositoryItemImageEdit1.EndInit();
            this.popupMenu1.EndInit();
            base.ResumeLayout(false);
        }

        private void InitMultiLanguages()
        {
            this.bbiAddRecruitment.Caption = MultiLanguages.GetString("tbl_Candidate", "AddRecruitment", this.bbiAddRecruitment.Caption);
            this.bbiAddCandidate.Caption = MultiLanguages.GetString("tbl_Candidate", "AddCandidate", this.bbiAddCandidate.Caption);
            this.bbiEdit.Caption = MultiLanguages.GetString("tbl_Candidate", "Edit", this.bbiEdit.Caption);
            this.bbiDelete.Caption = MultiLanguages.GetString("tbl_Candidate", "Delete", this.bbiDelete.Caption);
            this.bbiPrint.Caption = MultiLanguages.GetString("tbl_Candidate", "Print", this.bbiPrint.Caption);
            this.bbiMark.Caption = MultiLanguages.GetString("tbl_Candidate", "Result", this.bbiMark.Caption);
            this.bbiRate.Caption = MultiLanguages.GetString("tbl_Candidate", "Assessment", this.bbiRate.Caption);
            this.bbiRecruitment.Caption = MultiLanguages.GetString("tbl_Candidate", "Recruitment", this.bbiRecruitment.Caption);
            this.bbiExport.Caption = MultiLanguages.GetString("tbl_Candidate", "Export", this.bbiExport.Caption);
            this.bbiReload.Caption = MultiLanguages.GetString("tbl_Candidate", "Refresh", this.bbiReload.Caption);
            this.bbiClose.Caption = MultiLanguages.GetString("tbl_Candidate", "Close", this.bbiClose.Caption);
            this.colCandidateCode.Caption = MultiLanguages.GetString("tbl_Candidate", "CandidateCode", this.colCandidateCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_Candidate", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_Candidate", "LastName", this.colLastName.Caption);
            this.colSex.Caption = MultiLanguages.GetString("tbl_Candidate", "Sex", this.colSex.Caption);
            this.colBirthday.Caption = MultiLanguages.GetString("tbl_Candidate", "Birthday", this.colBirthday.Caption);
            this.colBirthPlace.Caption = MultiLanguages.GetString("tbl_Candidate", "Birthplace", this.colBirthPlace.Caption);
            this.colMainAddress.Caption = MultiLanguages.GetString("tbl_Candidate", "MainAddress", this.colMainAddress.Caption);
            this.colCellPhone.Caption = MultiLanguages.GetString("tbl_Candidate", "CellPhone", this.colCellPhone.Caption);
            this.colRecruitmentName.Caption = MultiLanguages.GetString("tbl_Candidate", "Recruitment", this.colRecruitmentName.Caption);
            this.colStatus.Caption = MultiLanguages.GetString("tbl_Candidate", "Status", this.colStatus.Caption);
            this.colIDCard.Caption = MultiLanguages.GetString("tbl_Candidate", "IDCard", this.colIDCard.Caption);
            this.colIDCardDate.Caption = MultiLanguages.GetString("tbl_Candidate", "IDCardDate", this.colIDCardDate.Caption);
            this.colIDCardPlace.Caption = MultiLanguages.GetString("tbl_Candidate", "IDCardPlace", this.colIDCardPlace.Caption);
            this.colMarriage.Caption = MultiLanguages.GetString("tbl_Candidate", "Marriage", this.colMarriage.Caption);
            this.colNationality.Caption = MultiLanguages.GetString("tbl_Candidate", "Nationality", this.colNationality.Caption);
            this.colProfessional.Caption = MultiLanguages.GetString("tbl_Candidate", "Professional", this.colProfessional.Caption);
            this.colReligion.Caption = MultiLanguages.GetString("tbl_Candidate", "Religion", this.colReligion.Caption);
            this.colMarriage.Caption = MultiLanguages.GetString("tbl_Candidate", "Marriage", this.colMarriage.Caption);
            this.colLanguage.Caption = MultiLanguages.GetString("tbl_Candidate", "Language", this.colLanguage.Caption);
            this.colInformatic.Caption = MultiLanguages.GetString("tbl_Candidate", "Informatic", this.colInformatic.Caption);
            this.colEthnic.Caption = MultiLanguages.GetString("tbl_Candidate", "Ethnic", this.colEthnic.Caption);
            this.colEducation.Caption = MultiLanguages.GetString("tbl_Candidate", "Education", this.colEducation.Caption);
            this.lblNote1.Text = MultiLanguages.GetString("tbl_Candidate", "Note1", this.lblNote1.Text);
            this.lblNote2.Text = MultiLanguages.GetString("tbl_Candidate", "Note2", this.lblNote2.Text);
            this.lblNote3.Text = MultiLanguages.GetString("tbl_Candidate", "Note3", this.lblNote3.Text);
            this.lblNote4.Text = MultiLanguages.GetString("tbl_Candidate", "Note4", this.lblNote4.Text);
            this.lblNote5.Text = MultiLanguages.GetString("tbl_Candidate", "Note5", this.lblNote5.Text);
        }

        private void LoadGrid()
        {
            this.bbiFilter.EditValue = this.m_IndexKey = 0;
            this.bbiFilter.EditValueChanged += new EventHandler(this.bbiFilter_EditValueChanged);
            this.gcList.DataSource = new HRM_CANDIDATE().GetList(this.m_RecruitmentCode, this.m_IndexKey);
        }

        private static int LoadStyle()
        {
            try
            {
                DataSet set = new DataSet();
                set.ReadXml(Application.StartupPath + @"\LayoutControl\xucCandidate.xml");
                return int.Parse(set.Tables[0].Rows[0][0].ToString());
            }
            catch
            {
                return 230;
            }
        }

        private void LoadTree()
        {
            this.xucRecruit.LoadControl();
            this.xucRecruit.Selected += new xucRecruitment1.SelectedEventHander(this.xucRecruit_Selected);
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void ReLoad()
        {
            base.SetWaitDialogCaption("Đang nạp dữ liệu...");
            this.LoadTree();
            this.LoadGrid();
            this.barManager1.SetPopupContextMenu(this.gcList, this.popupMenu1);
        }

        private static void SaveStyle(int Position)
        {
            DataSet set = new DataSet();
            using (DataTable table = new DataTable())
            {
                table.Columns.Add("SplitterPosition", typeof(string));
                object[] objArray = new object[] { Position.ToString() };
                table.Rows.Add(new object[0]);
                table.Rows[0][0] = objArray[0];
                set.Tables.Add(table);
            }
            try
            {
                set.WriteXml(Application.StartupPath + @"\LayoutControl\xucCandidate.xml");
            }
            catch
            {
            }
        }

        private void SetMenu(Common.Class.RowClickEventArgs e)
        {
            object rowCellValue = this.gbList.GetRowCellValue(this.gbList.FocusedRowHandle, "CandidateCode");
            this.DisableMenu(false);
            if (rowCellValue == null)
            {
                this.DisableMenu(true);
            }
        }

        private void splitContainerControl1_SplitterPositionChanged(object sender, EventArgs e)
        {
            SaveStyle(this.splitContainerControl1.SplitterPosition);
        }

        private void ucList_ListKeyDown(object sender, KeyEventArgs key)
        {
            if (key.KeyCode == Keys.F2)
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.E))
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if (key.KeyCode == Keys.Enter)
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if (key.KeyCode == Keys.F5)
            {
                this.ReLoad();
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.N))
            {
                this.Add();
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.T))
            {
                this.Add();
            }
        }

        private void UpdateRow(HRM_CANDIDATE item)
        {
            GridView gbList = this.gbList;
            int focusedRowHandle = this.gbList.FocusedRowHandle;
            gbList.SetRowCellValue(focusedRowHandle, "CandidateCode", item.CandidateCode);
            gbList.SetRowCellValue(focusedRowHandle, "FirstName", item.FirstName);
            gbList.SetRowCellValue(focusedRowHandle, "LastName", item.LastName);
            gbList.SetRowCellValue(focusedRowHandle, "Sex", item.Sex);
            gbList.SetRowCellValue(focusedRowHandle, "Birthday", item.Birthday);
            gbList.SetRowCellValue(focusedRowHandle, "BirthPlace", item.BirthPlace);
            gbList.SetRowCellValue(focusedRowHandle, "CellPhone", item.CellPhone);
            gbList.SetRowCellValue(focusedRowHandle, "MainAddress", item.MainAddress);
            gbList.SetRowCellValue(focusedRowHandle, "Status", item.Status);
            gbList.SetRowCellValue(focusedRowHandle, "Photo", item.Photo);
            gbList.SetRowCellValue(focusedRowHandle, "Email", item.Email);
            gbList.SetRowCellValue(focusedRowHandle, "IDCard", item.IDCard);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardDate", item.IDCardDate);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardPlace", item.IDCardPlace);
            gbList.SetRowCellValue(focusedRowHandle, "Marriage", item.Marriage);
            gbList.SetRowCellValue(focusedRowHandle, "Nationality", item.Nationality);
            gbList.SetRowCellValue(focusedRowHandle, "Ethnic", item.Ethnic);
            gbList.SetRowCellValue(focusedRowHandle, "Religion", item.Religion);
            gbList.SetRowCellValue(focusedRowHandle, "Education", item.Education);
            gbList.SetRowCellValue(focusedRowHandle, "Language", item.Language);
            gbList.SetRowCellValue(focusedRowHandle, "Informatic", item.Informatic);
            gbList.SetRowCellValue(focusedRowHandle, "Professional", item.Professional);
            gbList.UpdateCurrentRow();
        }

        private void xfmMark_Success(object sender, int value)
        {
            this.gbList.SetFocusedRowCellValue(this.colStatus, value);
        }

        private void xfmRate_Success(object sender, int value)
        {
            this.gbList.SetFocusedRowCellValue(this.colStatus, value);
        }

        private void xfmRecruit_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.ReLoad();
        }

        private void xucRecruit_Selected(object sender, string Value)
        {
            this.gcList.DataSource = new HRM_CANDIDATE().GetList(this.m_RecruitmentCode = Value, this.m_IndexKey);
        }

        public delegate void ClosedHander(object sender);
    }
}

